﻿using System;
using System.Collections.Generic;

namespace YJKArch.AxisModule
{
	public class CharAndGenericCodeMapping
	{
		public CharAndGenericCodeMapping()
		{
			this.m_CharToCodeMap = new Dictionary<int, int>();
			this.m_CodeToCharMap = new Dictionary<int, int>();
			int i = 65;
			int num = 1;
			while (i <= 90)
			{
				if (i != 73 && i != 79 && i != 90)
				{
					this.m_CharToCodeMap.Add(i, num);
					this.m_CodeToCharMap.Add(num, i);
					num++;
				}
				i++;
			}
		}

		public static int Ary()
		{
			return 23;
		}

		public int CharToGenericCode(int theChar)
		{
			return this.m_CharToCodeMap[theChar];
		}

		public int GenericCodeToChar(int theChar)
		{
			return this.m_CodeToCharMap[theChar];
		}

		private Dictionary<int, int> m_CharToCodeMap;

		private Dictionary<int, int> m_CodeToCharMap;
	}
}
